import { QueryPageDto } from './dto'
import request from './request'

// 统计数据
interface GetDudectDto extends QueryPageDto {
    month: string
}
export interface DudectDto {
    client_id: number
    client_name: string
    commission: number
    desc: string
    premium: number
}
export function getDeduct (
    data: GetDudectDto
): Promise<{ data: DudectDto[]; total: number; total_commission: number }> {
    return request.get('/commission/list', data)
}
